Repository navigation
feat(session): idle breaks, room for the lists, readable timeline and shell - #40
Merged
Merged
Conversation
…nd shell - Chart breaks at idle gaps longer than the prompt cache, names the gap, and labels the clock on both sides; amber when the cache expired. - Totals fit on one line, the chart is shorter and can be hidden (kept per browser), and the key moves to the toolbar. - Timeline rows get texture: your messages stand out, tools show their kind and what they touched, numbers dim unless notable, idle rows sit between. - The agent picker is a menu that describes each subagent and when it ran. - Shell commands split into statements and get colors (public/shell.js). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dings - Inspector call lists lay each call out as time | content | duration, with the tool and an "in <folder>" label for a leading cd above a two-line preview and a More button that opens the rest in place. - Finding details clamp to two lines in the list and four in the inspector. - Call summaries use the command without its leading cd, files, pattern or title, never raw arguments; slow calls list the three slowest first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…filter - Totals sit in two columns beside a shorter chart (112px). The chart's own bar holds its key and buttons to widen it (full width, 200px) or hide it. - The toolbar no longer wraps, so the findings chip can't add a line. - "Your messages only" keeps just your messages, each with the agent's last word, and the inspector opens the turn. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the chart bar - The chart runs to the top of the overlay; the title, meta and totals (four columns) sit on its left. The bar above the chart starts with Review and Open, then the chart buttons and key, with close at the right. - A selected finding shows as "Highlighting <finding>" in the chart bar, in place of the toolbar chip that read like a filter. - Timeline rows split into Said and Did columns, one line where they fit; turn rows are one line with the facts on the right; times drop AM/PM. - Shell hints and colors skip heredoc bodies (test added). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… line up Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Chart breaks share at most a fifth of the plot: the longest gaps stay as
breaks, the rest become ticks. Multi-day sessions get dates on the clock
labels; dense messages draw as ticks; the window label no longer collides.
- Repeat findings merge runs of one check across the session, even when its
arguments vary (31 findings became 10 on a heartbeat session).
- Codex code-mode calls (`tools.exec_command({cmd})`) read as their commands,
also when the log cuts the arguments short.
- Automation turns read as "Automation · <name>" and replies as Quiet or
Notified with their message; repeated prompts collapse to one line; idle rows
the cache rode out show only from 30 minutes.
- Picking a row moves the highlight instead of rebuilding a 1,900-row list and
1,200-bar chart: ~490ms became ~15ms.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The session overlay now gives the lists more room and is easier to read. Idle gaps show as breaks in the chart and the timeline, with clock times on both sides. Timeline rows show the kind of each tool and what it touched. The agent picker describes each subagent. Shell commands show one statement per line, with colors.
What you'll see
9m,4h12m). The gap is amber when the cache expired and gray when it held. Clock labels sit on both sides of each break. The timeline adds a striped row in the same place, such as "9m 08s idle · the prompt cache expired, so the next request wrote 78.7K tokens again".git head tail, never the text of a heredoc), file names, or a search pattern. Numbers are dim unless they matter: a cache share under 50% is amber and bold, and new input over 20k is bold. In All agents, each row and bar shows its agent's color.cd, above a two-line preview. More opens the rest in place, and short commands take one row. Finding details show two lines in the list and four in the inspector. Calls are named by their command (without the leadingcd), file, pattern or title, never raw JSON. "Took over a minute" lists the three slowest first.tools.exec_command({cmd:…})) now show their commands instead of JavaScript.;,&&,||and|, and loop andifbodies are indented. The split still runs the same command. Commands, flags, strings, paths and operators get colors, and acdline is dimmed.Proof
The same session at 1440px. In the after shot, the list starts about 75px higher. The 9m idle gap (10:13 → 10:22) is a labeled amber break, and the timeline rows show tool kinds and file names.
The agent menu with both subagents described and their run bars on the session clock.
The main agent alone. It has two breaks: 8m, where the cache held (gray), and 9m, where it expired (amber). The matching striped rows are in the timeline, and a Bash call in the inspector is split and colored.
The Tools tab with Bash selected. Each call is one row when it is short and a two-line preview when it is long, and its command is formatted and colored.
At 1000px, the agent column becomes a color dot, so the number columns stay in view.
Checks:
shell.test.jsprotects the command split. It checks that the split never breaks inside quotes,$( ), a subshell, or a heredoc, and that it indents loop bodies.Limits
The long-session changes have no screenshot. The only long session I could test is a private log with a real server address. The numbers above come from it, measured in the browser.
Gaps use a fixed 5-minute threshold. Sessions with 1-hour cache writes show many gray "cache held" breaks. They are real jumps in time, but they cost nothing.
The chart key is hidden on phone widths.
Your messages only is not kept in the URL. A refresh shows the full timeline again.
🤖 Generated with Claude Code